package com.kws.merchant.domain;


import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.web.multipart.MultipartFile;

/**
 * 报价-项目资料管理(ItemMaterial)表实体类
 *
 * @author yxy
 * @since 2024-10-24 14:46:59
 */
@Data
@ApiModel("报价-项目资料管理")
@TableName(value = "tb_item_material")
public class ItemMaterial extends Model<ItemMaterial> implements Serializable {
    private static final long serialVersionUID = 346308200156741329L;

    @TableId(type = IdType.AUTO)
    @ApiModelProperty("$column.comment")
    private Long id;

    @ApiModelProperty("项目进度id")
    private Long itemId;

    @ApiModelProperty("版本")
    private Double version;

    @ApiModelProperty("文件类型0设计方案 1备案信息 2验收报告")
    private Integer fileType;
    @ApiModelProperty("文件名称")
    private String fileName;
    @ApiModelProperty("文件大小")
    private String fileSiz;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("上传时间")
    private Date createTime;

    @ApiModelProperty("项目名称")
    @TableField(exist = false)
    private String itemName;
    @ApiModelProperty("文件路径")
    private String filePath;
}
